/* UbloxI2C

  Extends UbloxGPS class - Adds position & velocity unions
                           to speed byte:long conversions
*/

class UbloxI2C : public UbloxGPS
{
  public:
  
    UbloxI2C(void);

    boolean process(void);  

    union gpsPos {
      byte b[12];
      struct {
        long lat;                // lat, lon in deg x 10^6 (mod) or 10^5 (Hart)
        long lon;                // altitude in centimeters (m x 100)
        long alt;
      } data;
    } position;

    /*
    union gpsVel {
      byte b[12];
      struct {
        int g_course;
        int g_speed;             // course x 10 degrees, speed in cm/s (m/s x 100)
        int cos_course;
        int sin_course;          // cos, sin of course, Fix_16_15
        int v_north;
        int v_east;              // North and East component of velocity, cm/s
      } data;
    } velocity;
    */
};

